// Copyright Epic Games, Inc. All Rights Reserved.

#include "RobotSimulatorGameMode.h"
#include "RobotSimulatorPlayerController.h"
#include "RobotSimulatorCharacter.h"
#include "UObject/ConstructorHelpers.h"

ARobotSimulatorGameMode::ARobotSimulatorGameMode()
{
    // use our custom PlayerController class
    PlayerControllerClass = ARobotSimulatorPlayerController::StaticClass();

    // set default pawn class to our Blueprinted character
    static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/TopDownCPP/Blueprints/Robot"));
    if (PlayerPawnBPClass.Class != nullptr)
    {
        DefaultPawnClass = PlayerPawnBPClass.Class;
    }
}